module.exports = app => {
    const { STRING,TEXT } = app.Sequelize;  //解构赋值，引入插件

    

    //定义一个博客表，定义表的结构
    const Book = app.model.define('book',{
        title:STRING,
        img:STRING,
        md_text:TEXT,
        html_text:TEXT,

    })
    return Book
}